package common.bean;

import java.io.Serializable;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * 用于重写toString()方法的公共Bean
 * 
 * @author bianj
 * @version 1.0.0 2017-07-12
 */
public abstract class ToStringBean implements Serializable {
    private static final long serialVersionUID = -5394804308648842978L;

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
    }

}
